package com.cyy.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 宿舍水电支出
 * @TableName dormitory_expense_bill
 */
@TableName(value ="dormitory_expense_bill")
@Data
public class DormitoryExpenseBill implements Serializable {
    /**
     * 自增整数，主键，支出单ID
     */
    @TableId(type = IdType.AUTO)
    private Integer billId;

    /**
     * 整数，宿舍ID（通过关联表实现关联，此处暂不体现外键）
     */
    private Integer dormitoryId;

    /**
     * 日期，账单日期
     */
    private Date billDate;

    /**
     * 浮点数，总支出金额
     */
    private Double totalExpense;

    /**
     * 浮点数，水费支出金额
     */
    private Double waterExpense;

    /**
     * 浮点数，电费支出金额
     */
    private Double electricityExpense;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}